home *** CD-ROM | disk | FTP | other *** search
Wrap
XSetup plugin | 2002-01-01 | 5.0 KB | 192 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0" "TYPE"="9" "COUNT"="1" "UIPATH"="Appearance\Start menu\Windows XP\New Start Menu" "NAME"="Visible Items" "VERSION"="2.01" "LANGUAGE"="VBScript" "OSVERSION"="000001" "TEXT 1"="Aha! You can't see this!" "DESCRIPTION 1"="Use this plug-in to show or hide some of the items in the new (two columns) Start menu of Windows XP." "DESCRIPTION 2"="Pinned Programs: A "pinned" program is a program that you right clicked and selected "Pinn to Start Menu" from the context menu. It's basically something like a quick-launch bar because the Programs are available directly after you opened the Start button." "AUTHOR"="Xteq Systems" "CONTACTURL"="http://www.xteq.com/" "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved" "COMMENT 1"=" " 'stupid Windows XP! Has two settings for each item. Either in Classic Logon or in New Mode! GNARF! sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\" sP2="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" sV1=sP2 & "Start_ShowMyDocs" sV2=sP2 & "Start_ShowRecentDocs" sV3=sP2 & "Start_ShowRun" sV4=sP2 & "Start_ShowMyPics" sV5=sP2 & "Start_ShowMyMusic" sV6=sP2 & "Start_ShowMyComputer" sV7=sP2 & "Start_ShowControlPanel" sV8=sP2 & "Start_ShowHelp" sV9=sP2 & "Start_ShowSearch" sV10=sP2 & "Start_ShowNetConn" sV11=sP2 & "Start_ShowPrinters" sV12=sP2 & "Start_AdminToolsRoot" 'only setting that applies to Classic & New Menu! sV13=sP2 & "StartMenuFavorites" 'real policies start here sV14=sP & "NoStartMenuPinnedList" sV15=sP & "NoStartMenuMFUProgramsList" sV16=sP & "NoStartMenuMorePrograms" sV17=sP & "NoUserNameInStartMenu" sV18=sP & "NoClose" sV19=sP & "StartMenuLogoff" 'which idot coder at MS forgot the "No" part ?!?!?!?! sV20=sP & "NoStartMenuEjectPC" SUB Plugin_Initialize Call SetUIElement(1,"Right column: My Documents") Call ReadIt_2(1,sV1) Call SetUIElement(2,"Right column: Recent Documents") Call ReadIt_2(2,sV2) Call SetUIElement(3,"Right column: Run...") Call ReadIt_2(3,sV3) Call SetUIElement(4,"Right column: My Pictures") Call ReadIt_2(4,sV4) Call SetUIElement(5,"Right column: My Music") Call ReadIt_2(5,sV5) Call SetUIElement(6,"Right column: My Computer") Call ReadIt_2(6,sV6) Call SetUIElement(7,"Right column: Control Panel") Call ReadIt_2(7,sV7) Call SetUIElement(8,"Right column: Help & Support") Call ReadIt_2(8,sV8) Call SetUIElement(9,"Right column: Search") Call ReadIt_2(9,sV9) Call SetUIElement(10,"Right column: Network Connections") Call ReadIt_2(10,sV10) Call SetUIElement(11,"Right column: Printers") Call ReadIt_2(11,sV11) Call SetUIElement(12,"Right column: Administration") Call ReadIt_2(12,sV12) Call SetUIElement(13,"Right column: Favorites") Call ReadIt_2(13,sV13) Call SetUIElement(14,"Left column: All 'pinned' programs") Call ReadIt(14,sV14) Call SetUIElement(15,"Left column: All recently used programs") Call ReadIt(15,sV15) Call SetUIElement(16,"Left column: 'More Programs' link") Call ReadIt(16,sV16) Call SetUIElement(17," Top: Show username on top of Start Menu") Call ReadIt(17,sV17) Call SetUIElement(18,"Bottom: 'Shutdown' button") Call ReadIt(18,sV18) Call SetUIElement(19,"Bottom: 'Logoff' button") Call ReadIt(19,sV19) Call SetUIElement(20,"Bottom: 'Undock PC' button") Call ReadIt(20,sV20) END SUB 'Called when the Plugin should apply the changes SUB Plugin_Apply(ElementIndex,ElementSubIndex) Call WriteIt_2(1,sV1) Call WriteIt_2(2,sV2) Call WriteIt_2(3,sV3) Call WriteIt_2(4,sV4) Call WriteIt_2(5,sV5) Call WriteIt_2(6,sV6) Call WriteIt_2(7,sV7) Call WriteIt_2(8,sV8) Call WriteIt_2(9,sV9) Call WriteIt_2(10,sV10) Call WriteIt_2(11,sV11) Call WriteIt_2(12,sV12) Call WriteIt_2(13,sV13) Call WriteIt(14,sV14) Call WriteIt(15,sV15) Call WriteIt(16,sV16) Call WriteIt(17,sV17) Call WriteIt(18,sV18) Call WriteIt(19,sV19) Call WriteIt(20,sV20) Call IndicateSettingChange() Call Logoff() END SUB Sub ReadIt(ITM,PATH1) if RegValueExists(PATH1)=false then 'setting available? 'no setting -> item visible Call SetUIElementEx(ITM,true) else i=RegReadValue(PATH1) if i=0 then Call SetUIElementEx(ITM,true) end if end if End Sub Sub ReadIt_2(ITM,PATH1) if RegValueExists(PATH1)=false then 'setting available? 'no setting -> item not visible Call SetUIElementEx(ITM,false) else i=RegReadValue(PATH1) if i>0 then Call SetUIElementEx(ITM,true) end if end if End Sub Sub WriteIt(ITM,PATH1) b=GetUIElementEx(ITM) if b=true then s=RegReadValue(PATH1) if IsEmpty(s)=false then Call RegDeleteValue(PATH1) end if else Call RegWriteValue(PATH1,1,2) end if End Sub Sub WriteIt_2(ITM,PATH1) b=GetUIElementEx(ITM) if b=true then i=RegReadValue(PATH1) if i<1 then Call RegWriteValue(PATH1,1,2) end if else Call RegWriteValue(PATH1,0,2) end if End Sub SUB Plugin_Terminate END SUB